/*
 * @description:
 * @Author: lal
 * @Date: 2020-01-04 16:04:03
 * @LastEditors: lhr
 * @LastEditTime: 2021-02-07 17:11:19
 */
module.exports = {
  title: "信大捷安前端团队",
  description: "技术积累文档",
  head: [
    ["link", { rel: "icon", href: `/favicon.png` }],
    ["link", { rel: "manifest", href: "/manifest.json" }],
    ["meta", { name: "theme-color", content: "#3eaf7c" }],
    ["meta", { name: "apple-mobile-web-app-capable", content: "yes" }],
    ["meta", { name: "apple-mobile-web-app-status-bar-style", content: "black" }],
    ["link", { rel: "apple-touch-icon", href: `/icons/apple-touch-icon-152x152.png` }],
    [
      "link",
      {
        rel: "mask-icon",
        href: "/icons/safari-pinned-tab.svg",
        color: "#3eaf7c",
      },
    ],
    [
      "meta",
      {
        name: "msapplication-TileImage",
        content: "/icons/msapplication-icon-144x144.png",
      },
    ],
    ["meta", { name: "msapplication-TileColor", content: "#000000" }],
  ],
  themeConfig: {
    smoothScroll: true,
    nav: [
      { text: "electron", link: "/electron/electron-quick-start" },
      { text: "vue", link: "/vue/" },
      { text: "必备技能", link: "/base/tool" },
      { text: "可视化", link: "/visual/visual" },
      { text: "常见问题", link: "/question/browser" },
    ],
    sidebar: {
      "/vue/": ["ElScrollbar"],
      "/electron/": [
        {
          title: "Electron使用文档",
          collapsable: false,
          children: [
            "electron-quick-start",
            "electron-process",
            "electron-windows",
            "electron-update",
            "electron-dll",
            "electron-native",
            "electron-builder",
          ],
        },
      ],
      "/base/": [
        {
          title: "必备技能",
          collapsable: false,
          children: [
            "tool",
            "git",
            "web-safe",
            "es6-base",
            "es6-high",
            "http",
            "vue",
            "project",
            "vue3",
            "debug",
          ],
        },
      ],
      "/visual/": [
        {
          title: "可视化",
          collapsable: false,
          children: ["visual"],
        },
      ],
      "/question/": [
        {
          title: "常见问题",
          collapsable: false,
          children: [
            "browser",
            "other"
          ],
        }
      ],
    },
  },
  plugins: [
    [
      "@vuepress/pwa",
      {
        serviceWorker: true,
        updatePopup: true,
      },
    ],
  ],
  base: "/frontend-doc/",
}
